<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>LibQQt: QQtSerialPort Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="logo.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">LibQQt
   &#160;<span id="projectnumber">v3.1</span>
   </div>
   <div id="projectbrief">开源、跨平台Qt应用程序框架中间件</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pro-methods">Protected Member Functions</a> &#124;
<a href="class_q_qt_serial_port-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">QQtSerialPort Class Reference</div>  </div>
</div><!--header-->
<div class="contents">
<div class="dynheader">
Inheritance diagram for QQtSerialPort:</div>
<div class="dyncontent">
 <div class="center">
  <img src="class_q_qt_serial_port.png" usemap="#QQtSerialPort_map" alt=""/>
  <map id="QQtSerialPort_map" name="QQtSerialPort_map">
</map>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a17e8f588637d74cd7b24b4ae7b17c5dd"><td class="memItemLeft" align="right" valign="top"><a id="a17e8f588637d74cd7b24b4ae7b17c5dd"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>QQtSerialPort</b> (QObject *parent=0)</td></tr>
<tr class="separator:a17e8f588637d74cd7b24b4ae7b17c5dd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6d10f970cb2e2e902d5817ba111d3921"><td class="memItemLeft" align="right" valign="top"><a id="a6d10f970cb2e2e902d5817ba111d3921"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>installProtocol</b> (<a class="el" href="class_q_qt_protocol.html">QQtProtocol</a> *stack)</td></tr>
<tr class="separator:a6d10f970cb2e2e902d5817ba111d3921"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae424ddaa721a42350cf0285249bfd640"><td class="memItemLeft" align="right" valign="top"><a id="ae424ddaa721a42350cf0285249bfd640"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>uninstallProtocol</b> (<a class="el" href="class_q_qt_protocol.html">QQtProtocol</a> *stack)</td></tr>
<tr class="separator:ae424ddaa721a42350cf0285249bfd640"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a878ae6c67b17260934fa861e5d0cc75e"><td class="memItemLeft" align="right" valign="top"><a id="a878ae6c67b17260934fa861e5d0cc75e"></a>
<a class="el" href="class_q_qt_protocol.html">QQtProtocol</a> *&#160;</td><td class="memItemRight" valign="bottom"><b>installedProtocol</b> ()</td></tr>
<tr class="separator:a878ae6c67b17260934fa861e5d0cc75e"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a>
Protected Member Functions</h2></td></tr>
<tr class="memitem:a7d3e84dbed9a0b874a0a8af849b0a9de"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_qt_serial_port.html#a7d3e84dbed9a0b874a0a8af849b0a9de">translator</a> (const QByteArray &amp;bytes)</td></tr>
<tr class="memdesc:a7d3e84dbed9a0b874a0a8af849b0a9de"><td class="mdescLeft">&#160;</td><td class="mdescRight">translator 用于拆分和分发数据报  <a href="#a7d3e84dbed9a0b874a0a8af849b0a9de">More...</a><br /></td></tr>
<tr class="separator:a7d3e84dbed9a0b874a0a8af849b0a9de"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a7d3e84dbed9a0b874a0a8af849b0a9de"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7d3e84dbed9a0b874a0a8af849b0a9de">&#9670;&nbsp;</a></span>translator()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void QQtSerialPort::translator </td>
          <td>(</td>
          <td class="paramtype">const QByteArray &amp;&#160;</td>
          <td class="paramname"><em>bytes</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>translator 用于拆分和分发数据报 </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">bytes</td><td></td></tr>
  </table>
  </dd>
</dl>
<p>这个地方的实现，还是有一些复杂， 但是只有流式传输才需要， 而且，每种通讯接口的流式传输都是一样的， 过去，写在protocol里是为了增添传输工具客户端类型方便 现在，这块比较稳定，所以挪动回来。</p>
<p>只能安装一个协议。 如果安装多个，这个地方的static，需要给协议们分配独立的buffer。 一个客户端，和服务器通信，一条流，可以由多个协议进行解析吗？</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>R:/Develop/a0-develop/LibQQt/src/network/<a class="el" href="qqtserialport_8h_source.html">qqtserialport.h</a></li>
<li>R:/Develop/a0-develop/LibQQt/src/network/qqtserialport.cpp</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
</body>
</html>
